package com.bdqn.zhao.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bdqn.zhao.pojo.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author zhangsan
 * @since 2023-04-24
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
   @Update("update sys_user set password=#{password} where login_name=#{loginName}")
    int updatePwd(SysUser sysUser);
    @Update("update sys_user set status=#{status} where login_name=#{loginName}")
    int updatestatus(String status,String loginName);
}
